package com.assets.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;

@Entity(tableName = "t_asset_receives_reapply")
public class ReceivesReapply implements Serializable {

    private static final long serialVersionUID=1L;

    @ColumnInfo(name = "id")
    @PrimaryKey(autoGenerate = true)
    private Integer id;

    /**
     * 领用id
     */
    @ColumnInfo(name = "receives_id")
    private Long receivesId;

    /**
     * 名称品牌型号
     */
    @ColumnInfo(name = "name")
    private String name;

    /**
     * 领用数量
     */
    @ColumnInfo(name = "num")
    private String num;

    /**
     * 是否同意
     */
    @ColumnInfo(name = "isaudit")
    private String isaudit;

    /**
     * 理由
     */
    @ColumnInfo(name = "unaudit")
    private String unaudit;

    /**
     * 使用人
     */
    @ColumnInfo(name = "user")
    private String user;

    /**
     * 使用位置
     */
    @ColumnInfo(name = "place")
    private String place;

    /**
     * 待发数量
     */
    @ColumnInfo(name = "sum")
    private String sum;

    /**
     * 是否发放完全
     */
    @ColumnInfo(name = "isput")
    private String isput;

    @ColumnInfo(name = "is_flag")
    private String isFlag;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getReceivesId() {
        return receivesId;
    }

    public void setReceivesId(Long receivesId) {
        this.receivesId = receivesId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getIsaudit() {
        return isaudit;
    }

    public void setIsaudit(String isaudit) {
        this.isaudit = isaudit;
    }

    public String getUnaudit() {
        return unaudit;
    }

    public void setUnaudit(String unaudit) {
        this.unaudit = unaudit;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getSum() {
        return sum;
    }

    public void setSum(String sum) {
        this.sum = sum;
    }

    public String getIsput() {
        return isput;
    }

    public void setIsput(String isput) {
        this.isput = isput;
    }

    public String getIsFlag() {
        return isFlag;
    }

    public void setIsFlag(String isFlag) {
        this.isFlag = isFlag;
    }


    @Ignore
    public ReceivesReapply() {
    }


    public ReceivesReapply(Integer id, Long receivesId, String name,
                           String num, String isaudit, String unaudit,
                           String user, String place, String sum,
                           String isput, String isFlag) {
        this.id = id;
        this.receivesId = receivesId;
        this.name = name;
        this.num = num;
        this.isaudit = isaudit;
        this.unaudit = unaudit;
        this.user = user;
        this.place = place;
        this.sum = sum;
        this.isput = isput;
        this.isFlag = isFlag;
    }

    @Override
    public String toString() {
        return "ReceivesReapply{" +
                "id=" + id +
                ", receivesId=" + receivesId +
                ", name=" + name +
                ", num=" + num +
                ", isaudit=" + isaudit +
                ", unaudit=" + unaudit +
                ", user=" + user +
                ", place=" + place +
                ", sum=" + sum +
                ", isput=" + isput +
                "}";
    }
}
